﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" JurnalConfig to change the interface name "IJurnalConfigServices" in both code and config file together.
    [ServiceContract]
    public interface IJurnalConfigServices
    {
        [OperationContract]
        List<JurnalConfigDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                      string sortType = "ASC");

        [OperationContract]
        bool Save(JurnalConfigDTO JurnalConfig);

        [OperationContract]
        bool Delete(JurnalConfigDTO JurnalConfig);

        [OperationContract]
        List<JurnalConfigDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                out long recordCount);

        [OperationContract]
        List<JurnalConfigDTO> GetAllJurnalConfig();

        [OperationContract]
        JurnalConfigDTO GetJurnalConfig(int kodeJurnalConfig);

        [OperationContract]
        List<String> GetJurnalTypes();

        [OperationContract]
        List<String> GetProperty(string TypeName);
    }
}